/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.edu.kamai.xml.beans.reading;

import com.edu.kamai.xml.beans.choiceXML;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author xyzhu
 */
public class readingQuestion {

    public readingQuestion(){
        choices = new ArrayList<choiceXML>();
    }
    
    public readingQuestion(String main,String pt,String rt){
        MainTxt = main;
        choices = new ArrayList<choiceXML>();
    }
    
    public String getMainTxt() {
        return MainTxt;
    }

    public void setMainTxt(String MainTxt) {
        this.MainTxt = MainTxt;
    }

    public List<choiceXML> getChoices() {
        return choices;
    }

    public void setChoices(List<choiceXML> choices) {
        this.choices = choices;
    }
    
    public void addChoices(choiceXML choice){
        choices.add(choice);
    }

    public int getTimeLimit() {
        return timeLimit;
    }

    public void setTimeLimit(int timeLimit) {
        this.timeLimit = timeLimit;
    }
    
    
    private String MainTxt;
    private int timeLimit;
    private List<choiceXML> choices;
    
}
